//------------------------------------------------------------------------------
//此代码由工具生成
//请使用partial类进行扩展,避免修改被覆盖
//createTime:2020-11-20 09:54:46
//------------------------------------------------------------------------------
using System.Linq.Expressions;
using System;
using System.Collections.Generic;
using System.Linq;
using XKPlatform.DataModels.Dao.BaseDao;
using XKPlatform.DataModels.Dao.BaseEntity;
using XKPlatform.DataModels;
using XKPlatform.IService;
namespace XKPlatform.Service
{
    public partial class SysTimerService :BaseFreeSqlDao<SysTimer>, ISysTimerService
    {
            public bool AddModel(SysTimer model)
            {
                return InsertAffrows(model) > 0;
            }

            public bool BatchSave(List<SysTimer> models)
            {
                return BatchInsert(models) > 0;
            }

            public (List<SysTimer> list, long count) GetList(Expression<Func<SysTimer, bool>> where, List<SortInfo<SysTimer, object>> orderbys = null, PageInfo pageInfo = null)
            {
                return Query(where, orderbys, pageInfo);
            }

            public SysTimer GetModel(Expression<Func<SysTimer, bool>> where)
            {
                return GetByOne(where);
            }

            public bool UpdateModel(SysTimer model, Expression<Func<SysTimer, bool>> where, Expression<Func<SysTimer, object>> IgnoreLmbad = null)
            {
                return Update(model, where, IgnoreLmbad);
            }
    }
}
